package com.sample.library.portlet.search.author;

import javax.portlet.PortletRequest;

import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;

public class AuthorDisplayTerms extends DisplayTerms {
	public static final String NAME = "name";
	public static final String EMAIL = "email";
	
	public AuthorDisplayTerms(PortletRequest portletRequest) {
		super(portletRequest);
		name = ParamUtil.getString(portletRequest, NAME);
		email = ParamUtil.getString(portletRequest, EMAIL);
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}

	protected String name;
	protected String email;
}
